package com.g13.virtualpethospital.service;

import com.g13.virtualpethospital.entity.TestPaperBriefEntity;
import com.g13.virtualpethospital.entity.TestPaperEntity;
import com.g13.virtualpethospital.exceptions.TestPaperException;

import java.util.List;

/**
 * @Title: TestPaperService
 * @Author yyj1205
 * @Package com.g13.virtualpethospital.service
 * @Date 24/3/2024 21:18
 * @description: 用于试卷的服务
 */
public interface TestPaperService {
    /**
     * 添加试卷
     * @param testPaperBrief
     */
    public void addTestPaper(TestPaperBriefEntity testPaperBrief);

    /**
     * 根据id删除试卷
     * @param id
     */
    public void deleteTestPaper(String id) throws TestPaperException;

    /**
     * 更新试卷内容
     * @param testPaperBrief
     * @param id
     */
    public void updateTestPaper(TestPaperBriefEntity testPaperBrief, String id) throws TestPaperException;

    /**
     * 按照标题查找试卷，留空视为不做筛选
     * @param headline
     */
    public List<TestPaperBriefEntity> findTestPaperByHeadline(String headline);

    /**
     * 查找所有试卷
     */
    public List<TestPaperBriefEntity> findAllTestPaper();

    /**
     * 返回特定id的试卷
     * @param id
     * @return
     */
    public List<TestPaperBriefEntity> findTestPaperById(String id);


}
